<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">

<style>
td span {color:red;}
.green {color:green;}
.red {color:red;}
</style>
</head>
<body>
<input type="hidden" id="update_right" value="1" ></input>
<div id="maincontent">
<psp:tags     htmlname='messagebox'  iconname='messagebox' />
	<div class="wrap">
    <div class="crumbs">当前位置 &gt;&gt; 用户管理 &gt;&gt; 会员后台充值</div>
        <hr />
	<div class="infobox">
    <h3><span class="left">会员后台充值</span> <span style="margin-right:15px;" class="right"><a style="float:right;" href="<?php echo $this->_url('admin/user/index');?>">会员列表</a></span></h3>
    <div class="content2">
		
		<form action="<?php echo $this->_url('admin/user/money/'.$user_info['id']);?>" method="post">
		<table class="form-table">
		  <tbody>
			<tr>
				<td style="width:60px;">会员名称：</td>
				<td><?php echo $user_info['username']; ?></td>
			</tr>
			<tr>
				<td>充值金额：</td>
				<td><input class="small-text" type="text" name="data[money]" value="" /> <span id="user_email_message">只能是整数</span></td>
			</tr>

			<tr>
				<input type="hidden" name="data[user_id]" value="<?php echo $user_info['id'];?>">
				<td colspan="2"><span class="button-container"><input class="regular-button" type="submit" name="submit" value="确定充值s" /></span></td>
			</tr>
		  </tbody>
		</table>
		</form>		
		
		
	  </div>
	 </div>
	</div>
</div>
<script language="JavaScript" src="<?php echo $this->_webroot('servtools/ajax_client/ajax.js'); ?>"></script>
<script>
var user_email = document.getElementsByName("data[money]")[0];
var user_email_message = document.getElementById("user_email_message");
var submit = document.getElementsByName("submit")[0];
user_email.onblur = function(){
	if(user_email.value=='') {
		user_email_message.innerHTML = '金额不能为空!';
		submit.disabled = true;
	} else {
		submit.disabled = false;
	}
}
</script>
</body>
</html>